home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Programming
/
EasyTools
/
Alert
next >
Wrap
Text File
|
1996-12-13
|
2KB
|
90 lines
/*
$VER: Alert 1.0 (22.12.95) by David De Groot
simple alarmscript
*/
NL = '0a'x
bool = exists('libs:rexxreqtools.library')
if BOOL = 0 then say "You need RexxReqTools.library"
else call addlib('rexxreqtools.library',0,-30)
begin:
zip = rtgetlong( "15","Within" nl,
"how many minutes" nl,
"would you like to be notified?",,
"Tell me", "Start|Set hour|_Cancel",,
'rtgl_min = 1 rtgl_max = 360 rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext rtez_defaultresponse = 0 ')
if rtresult == 2 then do
zip2 = rtgetstring("00:00", "Insert time to be notified." nl,
"(Keep the ':' for seperation)" nl,
"Don't enter secs.",,
"Tell me", "Ok|_Cancel",,
'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext rtez_defaultresponse = 0 ')
if zip2 == '00:00'
then
call rtezrequest("Are you sure you want to be" nl,
"notified at" zip2 "?",,
"Ok|_No way!",,
"Alert:",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
if rtresult == 0 then signal begin
else do
address command 'wait until ' || zip2 || ' '
call rtezrequest("ALERT!" nl,
"" nl,
"It's" nl,
zip2 "allready." nl,
"",,
"Ok! |_Run again",,
"Alert:", 'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
if rtresult == 1 then exit
end
if rtresult == 0 then signal begin
end
if rtresult == 0 then exit
if rtresult == 1
then do
address command 'wait ' || zip || ' mins'
call rtezrequest("ALERT!" nl,
"" nl,
"It's been" nl,
zip "minutes allready." nl,
"",,
"Ok! |_Run again",,
"Alert:", 'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
if rtresult == 1 then exit
end
if rtresult == 0 then signal begin